<extend name="Public:template" />
<block name="page_header">
	<ul class="header-sub">
		<li class="previous"><a href="{:U('Index/index')}" class="btn btn-default active" role="button"><span class="icon icon-home"></span>首页</a></li>
		<li ><h3>历史订单</h3></li>
		<li class="next "><a href="{:U('Cust/index')}" class="btn btn-warning active" role="button">我的<span class="icon-white icon-user"></span></a></li>
	</ul>
</block>
<block name="page_body">
<ul class="list-group mt5">
	<volist name="list" id="val" empty="暂时没有订单信息">
	<li class="list-group-item blueGraBg mt5"  action_url="{:U('CustOrder/showDetail',array('order_code'=>$val['order_code']))}">
		<h5 class="list-group-item-text"><span class="icon-white icon-file"></span>{$val.cust_order_time|date="Y-m-d H:i",###}<button class="btn-xs btn-info pull-right">详细</button></h5>
	</li>
	<li class="list-group-item">
		<p>【订单号码】：{$val.order_code}</p>
		<p>【订单状态】：{$val.order_status|m_order_status}</p>
		<p>【订单金额】：<span class="deepRed">¥{$val.order_amt|number_format=###, 2,'.',''}</span>
						<if condition="$val['order_send_fee'] neq 0">
							(含¥{$val['order_send_fee']|number_format=###, 2,'.',''}运费)
						<else/>
							(免运费)
						</if>
		</p>
		<p>【配送地址】：{$val.cust_address}</p>
	<li>
	</volist>
</ul>
</block>
<block name="script_footer">
<script type="text/javascript">
$(document).ready(function(){
	$("li.blueGraBg").on("click",function(){
		document.location.href = $(this).attr('action_url');
	})
})
</script>
</block>
